package pikes.core;

import java.io.StringWriter;

import org.junit.Assert;
import org.junit.Test;

public class PrintableCharSequenceTestCase {

	@Test
	public void testPrint() throws Exception {
		PrintableCharSequence pcs = new PrintableCharSequence("boo");
		StringWriter writer = new StringWriter();
		pcs.print(writer);
		Assert.assertEquals("boo", writer.toString());
	}

	@Test
	public void equals() throws Exception {
		PrintableCharSequence pcs = new PrintableCharSequence("boo");
		Assert.assertTrue(pcs.equals("boo"));
	}
}
